#ifndef _CPLAYER_H_
	#define _CPLAYER_H_

#include "CEntity.h"
#include "CWeapon.h"
#include "CBullet.h"
#include <cassert>

enum Player_Weapan{
	WP_NORMAL = 0,
	WP_AK = 1,
	WP_LASER = 2,
};

class CPlayer : public CEntity
{
public:
	float ShootDeltaTime;
	float LastShootTime;

	CWeapon *Weapon;

	CPlayer(void);
	
	bool OnLoad(char* File, int Width, int Height, int MaxFrames);
	void OnLoop();
	void Render(SDL_Surface* Surf_Display);
	void OnCleanup();
	void OnAnimate();
	bool OnCollision(CEntity* Entity);

	void Shoot();
	bool SetWeapon(CWeapon* weapon);

};


#endif